/*************************************************
 * 
 * Copyright by Bruno Eberhard
 * 
 * Created on 10.08.2006
 *
 *************************************************/
package fightplan.business;

import java.io.Serializable;

public class Winner implements Serializable {
	private static final long serialVersionUID = 1L;

	private int rank;

	private FighterHolder fighterHolder;

	public Winner(int rank, FighterHolder fighterHolder) {
		this.rank = rank;
		this.fighterHolder = fighterHolder;
	}

	public FighterHolder getFighterHolder() {
		return fighterHolder;
	}

	public int getRank() {
		return rank;
	}

	public String formatPrintString() {
		String res = rank + ". ";
		if (fighterHolder.getFighter() != null) {
			res += fighterHolder.getFighter().getDisplayName();
		}
		return res;
	}

}
